package com.zrq.jwtdemo.author.dto.request;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @Author:
 * @CreateDate: 2020/12/16
 * @Version: 类说明：
 */
@Data
@Builder
public class LoginRequest implements Serializable {

    private static final long serialVersionUID = -1242493306307174690L;

    @NotBlank(message = "用户不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @Tolerate
    public LoginRequest() {
    }
}
